package com.naiterui.ehp.bs.im.feign;

import com.naiterui.ehp.bp.bo.emr.PatientDiseaseBO;
import com.naiterui.ehp.bp.support.config.FeignConfiguration;
import com.naiterui.ehp.bp.support.exception.BusinessException;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 高亮亮
 */
@FeignClient(name = "emr", url = "${ehp.domain.emr}", configuration = FeignConfiguration.class)
public interface EmrFeginClient {

    /**
     * @param msgSendParamBO
     *
     * @return
     *
     * @throws BusinessException
     */
    @PostMapping("/inner/medicalRecord/exist")
    Boolean existMedicalRecord(
            @RequestParam("doctorId") Long doctorId,
            @RequestParam("patientId") Long patientId) throws BusinessException;


    /**
     * 获取病情信息
     * @param diseaseId
     * @return
     */
    @GetMapping("/inner/patient/disease/get")
    PatientDiseaseBO getPatientDisease(String diseaseId);

    @GetMapping("inner/patient/disease/info")
    PatientDiseaseBO getDisease(@RequestParam("patientId") Long patientId);
}
